<?php
namespace app\model;
class Account extends BaseModel
{
    public function check($username,$password)
    {
       // $res=Account::where(['username'=>$username,'password'=>$password]);
       $res=self::where(['username'=>$username,'password'=>$password])->find();
        return $res;
    }
  
}

